/*
 * XML Type:  SecurityRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.SecurityRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML SecurityRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class SecurityRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.SecurityRequest
{
    
    public SecurityRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SECID$0 = 
        new javax.xml.namespace.QName("", "SECID");
    private static final javax.xml.namespace.QName TICKER$2 = 
        new javax.xml.namespace.QName("", "TICKER");
    private static final javax.xml.namespace.QName FIID$4 = 
        new javax.xml.namespace.QName("", "FIID");
    
    
    /**
     * Gets the "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId getSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "SECID" element
     */
    public boolean isSetSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECID$0) != 0;
        }
    }
    
    /**
     * Sets the "SECID" element
     */
    public void setSECID(net.ofx.types.x2003.x04.SecurityId secid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            }
            target.set(secid);
        }
    }
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId addNewSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            return target;
        }
    }
    
    /**
     * Unsets the "SECID" element
     */
    public void unsetSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECID$0, 0);
        }
    }
    
    /**
     * Gets the "TICKER" element
     */
    public java.lang.String getTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TICKER$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TICKER" element
     */
    public net.ofx.types.x2003.x04.TickerType xgetTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TickerType target = null;
            target = (net.ofx.types.x2003.x04.TickerType)get_store().find_element_user(TICKER$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "TICKER" element
     */
    public boolean isSetTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TICKER$2) != 0;
        }
    }
    
    /**
     * Sets the "TICKER" element
     */
    public void setTICKER(java.lang.String ticker)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TICKER$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TICKER$2);
            }
            target.setStringValue(ticker);
        }
    }
    
    /**
     * Sets (as xml) the "TICKER" element
     */
    public void xsetTICKER(net.ofx.types.x2003.x04.TickerType ticker)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TickerType target = null;
            target = (net.ofx.types.x2003.x04.TickerType)get_store().find_element_user(TICKER$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TickerType)get_store().add_element_user(TICKER$2);
            }
            target.set(ticker);
        }
    }
    
    /**
     * Unsets the "TICKER" element
     */
    public void unsetTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TICKER$2, 0);
        }
    }
    
    /**
     * Gets the "FIID" element
     */
    public java.lang.String getFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIID$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FIID" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionIdType xgetFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionIdType)get_store().find_element_user(FIID$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "FIID" element
     */
    public boolean isSetFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FIID$4) != 0;
        }
    }
    
    /**
     * Sets the "FIID" element
     */
    public void setFIID(java.lang.String fiid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIID$4);
            }
            target.setStringValue(fiid);
        }
    }
    
    /**
     * Sets (as xml) the "FIID" element
     */
    public void xsetFIID(net.ofx.types.x2003.x04.FinancialInstitutionIdType fiid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionIdType)get_store().find_element_user(FIID$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FinancialInstitutionIdType)get_store().add_element_user(FIID$4);
            }
            target.set(fiid);
        }
    }
    
    /**
     * Unsets the "FIID" element
     */
    public void unsetFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FIID$4, 0);
        }
    }
}
